package com.golang.api.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.golang.api.domain.User;

/**
 * 用户信息Service接口
 *
 * @author zhaolei
 * @date 2025-04-30
 */
public interface IUserService extends IService<User> {

    String getOpenIdByCode(String code);

    void sendTextCodeByPhoneNum(String phoneNum, String code);

    int addNewUser(String phoneNum);

    boolean selectUserByPhoneNum(String phoneNum);

    int getUserByOpenId(String openId);

    int updateUserOpenId(String openId, String phoneNum);

    int addNewUser(User user);
}
